import axios from 'axios';
import {config} from 'utils';

export async function login(payload) {
    //console.log(payload);
    let  url = `${config.api}token?userName=${payload.userName}&password=${payload.password}`;
    return await axios.get(url).then((data)=>{
        //console.log(data);
        return data;
    })
}